<?php

namespace app\admin\model\task;

use think\Model;

/**
 * Log
 */
class Log extends Model
{
    // 表名
    protected $name = 'task_log';

    // 自动写入时间戳字段
    protected $autoWriteTimestamp = true;
    protected $updateTime = false;


    public function shopUser(): \think\model\relation\BelongsTo
    {
        return $this->belongsTo(\app\admin\model\shop\user\User::class, 'shop_user_id', 'id');
    }

    public function taskTask(): \think\model\relation\BelongsTo
    {
        return $this->belongsTo(\app\admin\model\task\Task::class, 'task_task_id', 'id');
    }
}